public class Dog {
    private String name;
    String age;
    String color;
    public Dog(String n,String age,String color){               //记住
//        this.name=n;
    setName(n);
        this.age=age;
        this.color=color;
    }
//    public Dog(String na){
//        this.name=na;
//    }
    public void bite(Ciwe s){

        System.out.println(age+"的"+name+"("+color+")"+"咬了"+s.getAge()+"的"+s.getName()+"无从下口。");
    }
    public void bite(Gou s){

        System.out.println(age+"的"+name+"("+color+")"+"咬了"+s.getAge()+"的"+s.getName()+"一嘴毛。");
    }
    public void bite(Lvdongbing s){

        System.out.println(age+"的"+name+"("+color+")"+"咬了"+s.getAge()+"的"+s.getName()+"不识好人心。");
    }
    public String getName(){                //记住(命名私有化方式)

        return name;
    }
    public void setName(String n){          //记住

        this.name=n;
    }
}
